package com.stars.empoly.activity

import android.os.Bundle
import com.google.gson.Gson
import com.stars.empoly.base.MBActivity
import com.stars.empoly.databinding.ActivityBillDetailsBinding
import com.stars.empoly.model.MemberList
import com.stars.empoly.vmodel.BillDetailsVModel

/**
 *on 2022/9/23
 */
class BillDetailsActivity: MBActivity<BillDetailsVModel, ActivityBillDetailsBinding>() {

    override fun init(savedInstanceState: Bundle?) {
        super.init(savedInstanceState)
        var data=intent.extras?.getString("bean")
        vm.bean.value = Gson().fromJson(data, MemberList::class.java)

    }

    override fun vmClass(): Class<BillDetailsVModel> {
        return BillDetailsVModel::class.java
    }
    override fun binding(): ActivityBillDetailsBinding {
       return ActivityBillDetailsBinding.inflate(layoutInflater)
    }

    override fun title(): String? {
        return "账单明细"
    }
}
